<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="/Public/Admin/extend/lib/html5shiv.js"></script>
    <script type="text/javascript" src="/Public/Admin/extend/lib/respond.min.js"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="/Public/Admin/extend/static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="/Public/Admin/extend/static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="/Public/Admin/extend/lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="/Public/Admin/extend/static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="/Public/Admin/extend/static/h-ui.admin/css/style.css" />
    <link href="/Public/Admin/extend/lib/lightbox2/2.8.1/css/lightbox.css" rel="stylesheet" type="text/css" >
    <!--[if IE 6]>
    <script type="text/javascript" src="/Public/Admin/extend/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <title>医师认证审核</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
</head>
<body>
<article class="page-container">
    <form class="form form-horizontal" id="form-agency">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">姓名：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <?php echo ($res['auth_name']); ?>
            </div>
        </div>
        
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">身份证号：</label>
            <div class="formControls col-xs-8 col-sm-9">
             <?php echo ($res['identity_card']); ?>        
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">所在医院：</label>
            <div class="formControls col-xs-8 col-sm-9">
             <?php echo ($res['auth_hospital']); ?>        
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">主治项目：</label>
            <div class="formControls col-xs-8 col-sm-9">
             <?php echo ($res['auth_project']); ?>        
            </div>
        </div>
       <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">身份证正面：</label>
            <div class="formControls col-xs-8 col-sm-9">
             <a href="<?php echo ($res['face_card']); ?>" title="点击查看图片" data-lightbox="gallery" data-title="封面图片"><img src="<?php echo ($res['face_card']); ?>" style="width:10%;height:10%;"></a>
            <!-- <img src="<?php echo ($res['face_card']); ?>"/>   -->    
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">身份证反面：</label>
            <div class="formControls col-xs-8 col-sm-9">
             <!--  <img src="<?php echo ($res['back_card']); ?>"/>   -->
              <a href="<?php echo ($res['back_card']); ?>" title="点击查看图片" data-lightbox="gallery" data-title="封面图片"><img src="<?php echo ($res['back_card']); ?>" style="width:10%;height:10%;"></a>     
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">医师执照：</label>
            <div class="formControls col-xs-8 col-sm-9">
            <!--    <img src="<?php echo ($res['auth_img']); ?>"/> -->
               <a href="<?php echo ($res['auth_img']); ?>" title="点击查看图片" data-lightbox="gallery" data-title="封面图片"><img src="<?php echo ($res['auth_img']); ?>" style="width:10%;height:10%;"></a>
            </div>
        </div>
        
         <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">审核备注：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <textarea name='remark' rows="5" cols="50"><?php echo ($res['remark']); ?></textarea>
            </div> 
        </div>         
      
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">审核状态：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <select name='auth_status'>
                    <option value="0" >请选择审核状态</option>
                    <option value="1" <?php if($res["auth_status"] == 1): ?>selected="selected"<?php endif; ?>>审核通过</option>               
                    <option value="2" <?php if($res["auth_status"] == 2): ?>selected="selected"<?php endif; ?>>审核不通过</option>  
                </select>
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <input type="hidden" name="id" value="<?php echo ($res['auth_id']); ?>">

                <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;保存&nbsp;&nbsp;">
            </div>
        </div>

    </form>
</article>

<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="/Public/Admin/extend/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="/Public/Admin/extend/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="/Public/Admin/extend/static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="/Public/Admin/extend/static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="/Public/Admin/extend/lib/jquery.validation/1.14.0/jquery.validate.js"></script>
<script type="text/javascript" src="/Public/Admin/extend/lib/jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript" src="/Public/Admin/extend/lib/jquery.validation/1.14.0/messages_zh.js"></script>
<script type="text/javascript" src="/Public/Admin/extend/lib/lightbox2/2.8.1/js/lightbox.min.js"></script>
<script type="text/javascript">
    $(function(){

        $("#form-agency").validate({
            rules:{
              remark:{
                required: true,
              }
            },
            onkeyup:false,
            focusCleanup:true,
            success:"valid",
            submitHandler:function(form){
                $(form).ajaxSubmit({
                    type: 'post',
                    url: "<?php echo U('Admin/Doctor/authCheck');?>" ,
                    success: function(data){
                        //alert(data);
                        if(data.status){
                            layer.msg(data.info,{icon:6,time:1000});
                            setTimeout((function() {
                                parent.window.location.href="<?php echo U('Admin/Doctor/doctorAuth',array('p'=>$p));?>";
                            }), 1500);
                        }else{
                            layer.msg(data.info,{icon:6,time:1000});
                        }
                    },
                    error: function(XmlHttpRequest, textStatus, errorThrown){
                        layer.msg('error!',{icon:5,time:1000});
                    }
                });
            }
        });
    });
</script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>